<?php 

if(isset($_SESSION['auth'])){ 
?>
<!-- Fixed top -->
<div id="top" style="position: relative;z-index: 2;">
    <div class="fixed">
        <a href="" title="" class="logo">
            <img src="/libraries/images/tk1109_green.jpg" alt="" />
            <b style="color: #fff;display: inline-block">CMS 11.09</b>
        </a>
        <ul class="top-menu">
            <li><a class="fullview tip" title="<?php echo $langs[ "fullview" ]?>" data-placement="bottom" ></a></li>
            <li><a class="showmenu tip" title="<?php echo $langs[ "navigation" ]?>" data-placement="bottom"></a></li>
            <li>
                <a href="#" onclick="dialog_notication()" title="<?php echo $langs[ "message" ]?>" class="messages tip" data-toggle="dropdown" data-placement="bottom">
                    <i class="new-message"></i>
                </a>
            </li>
            <?php if(isset($_SESSION['auth'])){ ?>
            <li >
                <a href="JavaScript:"  class="user-menu" >
                    <i class="icon-group" style="color:#fff"></i>
                    <span><?php echo quotes_to_entities($_SESSION['auth']['user']->ause_name) ?> !</span>
                </a>
            </li>
            <?php } ?>
        </ul>
    </div>
</div>
<!-- /fixed top -->

<div id="marker"></div>
<?php if(isset($_SESSION['auth'])){ ?>
<div class="account-info">
	<div>
        <br/>
		<!--<img class="account-avatar" src="//lh5.googleusercontent.com/-WAMgTlfd5og/AAAAAAAAAAI/AAAAAAAAAP0/b0LCEJbexS4/photo.jpg"/>-->
		<i class="icon-group account-avatar"></i>
	</div>
	<div style="padding:4px">
		<div><input id="my_name" value="<?php echo quotes_to_entities($_SESSION['auth']['user']->ause_name) ?>"/></div>
		<div class="base_fluid">
			<input id="my_password" placeholder="Current Password" />
			<i class="icon-random base-field-icon" onclick="random_mypass();" title="Random Password" style="color:#ccc"></i>
		</div>
		<div>
		E-mail :: <?php echo quotes_to_entities($_SESSION['auth']['user']->ause_email) ?><br/>
		<?php echo $langs[ "authority" ]?> :: <?php echo $_SESSION['auth']['user']->ause_authority ?><br/>
		<?php echo $langs[ "created" ]?> :: <?php echo $_SESSION['auth']['user']->ause_insert ?>
		</div>
	</div>
	<div class="base_button base_green base-small-border-radius btn-update-myaccount" onclick="update_me();" style="margin:0 auto;width:60px;text-align:center;display:none"><?php echo $langs[ "save" ]?></div>
	<a href="/cms/auth/logout?state=<?php echo uri_string() ?>" title="Logout" class="tip account-logout" data-placement="bottom"></a>
</div>
<?php } ?>
<!-- Action tabs -->
<div class="actions-wrapper on-top" style="margin:0;display: none">
    
        <div id="user-stats">
            <ul class="round-buttons">
                
                <li>
                    <div class="depth">
                        <a href="/cms/auth/logout" 
                           data-placement="bottom"
                           title="Logout" class="tip">
                            <i class="icon-signout"></i>
                        </a>
                    </div>
                </li>
            </ul>
        </div>
    
</div>
<!-- /action tabs -->
<?php } ?>
<?php
include APPPATH . 'views/cms/inc/03_popups.php';
?>
